<template>
  <div class="billStateWrapper">
    <div class="wrapper">
      <span class="billState" :class="[model]"  >{{ billStateName }}</span>
    </div>
  </div>
</template>
<script  setup>
import { computed} from 'vue'
const model = defineModel()
const billStateName = computed(() => {
  if(model.value === 'accounted') {
    return  '已审核'
  }
  if(model.value === 'del') {
    return  '已删除'
  }
  return '草稿'
})

</script>
<style scoped lang="scss">
.billStateWrapper {
  box-sizing: border-box;
  height: 28px;
  line-height: 28px;
  text-align: center;
}
.billState {
  color: red;
  font-weight: bolder;
  &.draft,&.ready {
    color: darkseagreen;
    border: 2px solid darkseagreen;
    padding: 3px 10px;
  }
  &.del {
    color: red;
    border: 2px solid red;
    padding: 3px 10px;
  }
  &.accounted {
    color: deepskyblue;
    border: 2px solid deepskyblue;
    padding: 3px 10px;
  }
}

</style>